package tech.aistar.corejava.day10;

/**
 * Created by 豆梦寒 on 2019/7/26.
 */
public class IntegerDemo {


    public static void main(String[] args) {
        //int 转换成 IntegerDemo
        Integer i = new Integer(10);
        System.out.println(i);
        //将文字形式的字符串转换成Integer类型、

        Integer j = new Integer("10");
        System.out.println(j);
        System.out.println(i==j);//false

        System.out.println(i.equals(j));//true

        Integer a =10;

        System.out.println(a==j);

        Integer b =10;

        int c = 10;
        //只要包装类型和基本类型之间进行数值的比较
        //那么底层都是会将包装类型转换成基本类型,然后再进行比较.
        System.out.println(c==i);

        //Integer lg = 10;


    }
}
